;; FlyCheck

(add-hook 'prog-mode-hook 'flycheck-mode)
(setq flycheck-emacs-lisp-load-path 'inherit)
(setq flycheck-check-syntax-automatically '(save mode-enabled idle-buffer-switch))
(setq flycheck-buffer-switch-check-intermediate-buffers t)
(setq flycheck-display-errors-delay 0.25)

(provide 'init-flycheck)
